package cn.lxh.user.mapper;

import cn.lxh.user.domain.WxPublicOrder;
import cn.lxh.user.domain.Wxuser;
import cn.lxh.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxh
 * @since 2022-06-20
 */
@Repository
public interface WxuserMapper extends BaseMapper<Wxuser> {

    Wxuser loadByOpenId(String openId);

    /**
     *
     * @return
     */
    @Select("SELECT * FROM `t_wxuser` WHERE unionid = 'wxpublic' AND user_id = '100'")
    List<Wxuser> selectByUnionid();


}
